# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
_php=php7
pkgname=${_php}-pear-mdb2_driver_pgsql
_realname=MDB2_Driver_pgsql
pkgver=1.5.0b4
pkgrel=0
pkgdesc="pgsql MDB2 driver"
url="http://pear.php.net/package/$_realname/"
arch="noarch"
license="LGPL"
depends="${_php}-pear"
options="!check"
source="http://download.pear.php.net/package/$_realname-$pkgver.tgz"
builddir="$srcdir"/$_realname-$pkgver

build()	{
	return 0
}

package() {
	_phpdir="usr/share/${_php}"
	cd "$builddir"
	mkdir -p "$pkgdir"/$_phpdir/PEAR && \
		cp -R MDB2 "$pkgdir"/$_phpdir/PEAR
	mkdir -p "$pkgdir"/$_phpdir/test/$_realname && \
		cp -R tests "$pkgdir"/$_phpdir/test/$_realname
}

sha512sums="e3717a412f28e8b93d2c693c021ca2965c02072db91f6fd43ddcfc8913a9bb95ac9a8eb07c9efd6e19d42753c5ae46c2da484c5a7deb83b59673f40ee67c5ad7  MDB2_Driver_pgsql-1.5.0b4.tgz"
